<!DOCTYPE html>
<html>
<head>
    <title>商品管理</title>
    #parse("include/header.html")
</head>
<body>
<div id="dpLTE" class="container-fluid" v-cloak>
    <div class="row">
        <div class="col-md-8 form-inline pull-left">
            <div class="form-group">
                <input v-model="keyword" @keyup.enter="load" class="form-control"  placeholder="姓名/电话/地址 " style="width: 220px;"/>&nbsp;&nbsp;&nbsp;
                <input v-model="startDate" id="startDate" @keyup.enter="load" class="form-control date-gift"  style="width: 100px;" placeholder="起始时间"/>&nbsp;&nbsp;&nbsp;
                <input v-model="endDate" id="endDate" @keyup.enter="load" class="form-control date-gift" style="width: 100px;" placeholder="结束时间" />
                </div>
              <div class="form-group">
                  <select name="type" class="selectpicker form-control"  v-model="expressStatusId" >
                    <option value="">全部</option>
                    <option value="1">未发货</option>
                    <option value="2">已发货</option>
                </select>
            </div>
            <div class="form-group">
                <a class="btn btn-primary" @click="load"><i class="fa fa-search"></i>&nbsp;查询</a>
            </div>
            
        </div>
        
        
        <div class="col-md-3">
            <div class="btn-toolbar pull-right">
                <div class="btn-group">
                    <a v-if="hasPermission('sys:user:list')" class="btn btn-default" onclick="reload();"><i
                            class="fa fa-refresh"></i>&nbsp;刷新</a>
                    <a v-if="hasPermission('sys:user:edit')" class="btn btn-default" @click="edit"><i
                            class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
                    
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <table id="dataGrid"></table>
    </div>
</div>
#parse("include/footer.html")

<script src="${rc.contextPath}/statics/js/base/goodsOrderContact/list.js?_${date.systemTime}"></script>

<script type="text/javascript">

    $('.date-gift').datetimepicker({
       minView: "month", 
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1,
        autoclose: true,
        format: 'yyyy-mm-dd',
        language: 'zh-CN',
    });
    
</script>


<script type="text/javascript">


    function exhibitonHalloperateFormatter(value, row, index) {
        return [
            '<button type="button" class="exhibitonOflist btn btn-default  btn-sm" style="margin-right:15px; @click="macroTree"">查看展项</button>'

        ].join('');
    };

    window.exhibitonHalloperateEvents = {
        'click .exhibitonOflist': function (e, value, row, index) {
            //  alert(row.exhibitionId);
            var ck = $('#dataGrid').bootstrapTable('getSelections');
            var recId =  row.recId
            
            	/* contactName: null,
			contactPhone: null,
			contactAddress: null,
			expressNum: null,
			expressChannel: null,
			expressName:null,
			expressStatus:null,
			expressStatusId:null,
			recId:null */
            //ck=1;

            dialogChoose({
                id: 'layerMacroTree',
                title: '选择物流',
               
                url: 'base/goods/expressedit.html?_' + $.now(),
                scroll: true,
                width: "1024px",
                height: "450px",
                success: function (iframeId) {
                    top.frames[iframeId].vm.recId = recId;
                    top.frames[iframeId].vm.load();
                },
                yes: function (iframeId) {
                    top.frames[iframeId].vm.acceptClick();
                }
            })


        },
        'click .RoleOfedit': function (e, value, row, index) {
            $("#editModal").modal('show');

        }
    };


</script>


</body>
</html>